package com.ruoyi.yzchu.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 yzc_product
 * 
 * @author ruoyi
 * @date 2025-04-06
 */
public class YzcProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long productId;

    /** 店铺ID（外键关联yzc_shop.shop_id） */
    @Excel(name = "店铺ID", readConverterExp = "外=键关联yzc_shop.shop_id")
    private Long shopId;

    /** 商品标题 */
    @Excel(name = "商品标题")
    private String title;

    /** 规格图URL（多个用逗号分隔） */
    @Excel(name = "规格图URL", readConverterExp = "多=个用逗号分隔")
    private String specImages;

    /** 售价 */
    @Excel(name = "售价")
    private BigDecimal price;

    /** 活动价 */
    @Excel(name = "活动价")
    private BigDecimal activityPrice;

    /** 是否上架（0否 1是） */
    @Excel(name = "是否上架", readConverterExp = "0=否,1=是")
    private String isPublish;

    /** 删除标志 */
    private String delFlag;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setSpecImages(String specImages) 
    {
        this.specImages = specImages;
    }

    public String getSpecImages() 
    {
        return specImages;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setActivityPrice(BigDecimal activityPrice) 
    {
        this.activityPrice = activityPrice;
    }

    public BigDecimal getActivityPrice() 
    {
        return activityPrice;
    }

    public void setIsPublish(String isPublish) 
    {
        this.isPublish = isPublish;
    }

    public String getIsPublish() 
    {
        return isPublish;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("shopId", getShopId())
            .append("title", getTitle())
            .append("specImages", getSpecImages())
            .append("price", getPrice())
            .append("activityPrice", getActivityPrice())
            .append("isPublish", getIsPublish())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
